<template>
  <a-modal
    width="60%"
    :visible="visible"
    :title="$t('all.autotext1341')"
    @ok="handleCancel"
    @cancel="handleCancel"
  >
    <Certification
      v-if="visible"
      @nextStep="handleCancel"
      :info="info"
      :type="1"
    />
  </a-modal>
</template>
<script>
import Certification from '../../person/Certification'
export default {
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    info: {
      type: Object,
      default: null
    }
  },
  components: {
    Certification
  },
  methods: {
    handleCancel () {
      this.$emit('handleCancel')
    }
  }
}
</script>
